package com.demo.plan.controller;

import com.demo.plan.common.Result;
import com.demo.plan.entity.User;
import com.demo.plan.service.PlanService;
import com.demo.plan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/plan")
public class PlanController {

    @Autowired
    private PlanService planService;

    @GetMapping("/test")
    public Result test() {
        planService.plan();
        return Result.suc();
    }
}
